import request from '@/utils/request'

// 查询盘点记录-物资列列表
export function listInventoryGoods(query) {
  return request({
    url: '/equipment/inventoryGoods/list',
    method: 'get',
    params: query
  })
}

// 查询盘点记录-物资列详细
export function getInventoryGoods(id) {
  return request({
    url: '/equipment/inventoryGoods/' + id,
    method: 'get'
  })
}

// 新增盘点记录-物资列
export function addInventoryGoods(id,recordId) {
  return request({
    url: '/equipment/inventoryGoods/' + id+'/'+recordId,
    method: 'post'
  })
}
// 修改盘点记录-物资列
export function updateInventoryGoods(data) {
  return request({
    url: '/equipment/inventoryGoods',
    method: 'put',
    data: data
  })
}

// 删除盘点记录-物资列
export function delInventoryGoods(id) {
  return request({
    url: '/equipment/inventoryGoods/' + id,
    method: 'delete'
  })
}
